package cn.com.cifi.mars.mapper.mars;


import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import cn.com.cifi.mars.bean.dto.EquityValueDto;
import cn.com.cifi.mars.bean.dto.PriceValueDto;
import cn.com.cifi.mars.bean.dto.ProjectOpenDto;
import cn.com.cifi.mars.entity.ApprovalPreview;
import cn.com.cifi.mars.entity.PriceVersion;

/**
 * <p>
 * 回款计划审批快照表 Mapper 接口
 * </p>
 *
 * @author JingYuanXiang
 * @since 2020-11-17
 */
public interface ApprovalPreviewMapper extends BaseMapper<ApprovalPreview> {

    ApprovalPreview selectByBillId(@Param("billId") String billId,@Param("isDel") int isDel);

	List<PriceValueDto> selectPriceValue(@Param("versionId")String versionId, @Param("stageName")String stageName, @Param("type")String type, @Param("isDel") int isDel);

	List<PriceValueDto> selectPresidentPriceValue(@Param("versionId")String versionId, @Param("stageName")String stageName, @Param("type")String type, @Param("isDel") int isDel);
	
	List<PriceVersion> selectPriceVersionList(@Param("stageIds")List<String> stageIds,@Param("versionType")String versionType,@Param("yearMonth")String yearMonth, @Param("isDel") int isDel);

	List<EquityValueDto> selectEquityPrice(@Param("projectId")String projectId,@Param("isDel") int isDel);

	String selectWarnContentByBillId(@Param("businessKey")String businessKey);

	ProjectOpenDto selectProjectOpenTime(@Param("projectId")String projectId);

	List<PriceVersion> selectBeforePriceVersionList(@Param("stageIds")List<String> stageIds, @Param("isDel") int isDel);

	List<PriceVersion> selectPriceVersionPresidentList(@Param("stageIds")List<String> stageIds, @Param("isDel") int isDel);

	List<EquityValueDto> selectEquityPriceByStageId(@Param("stageId")String stageId,@Param("isDel") int isDel);

	

}
